import React from "react";
import "@/assets/iconfont/iconfont.js";
import "./index.less";

interface prams {
  onClick?: () => void;
  className?: string;
  type?: string;
}
export default function index(props: prams) {
  const { className, onClick, type } = props;
  return (
    <svg className={"icon " + className} aria-hidden="true" onClick={onClick}>
      <use xlinkHref={`#${type}`}></use>
    </svg>
  );
}
//使用
{
  /* <Icon type={"icon-bianji"} /> */
}
